package cn.nexd.app.collector;

import android.Manifest;

import cn.nexd.utils.framework.tools.DateUtil;
import cn.nexd.utils.framework.tools.SDCardUtil;


/**
 * Created by wangxu on 16/9/14.
 */
public class Configuration {


    public static final String ACCESS_COARSE_LOCATION = Manifest.permission.ACCESS_COARSE_LOCATION;
    public static final String ACCESS_FINE_LOCATION = android.Manifest.permission.ACCESS_FINE_LOCATION;
    public static final String READ_EXTERNAL_STORAGE = Manifest.permission.READ_EXTERNAL_STORAGE;
    public static final String WRITE_EXTERNAL_STORAGE = Manifest.permission.WRITE_EXTERNAL_STORAGE;
    public static final String READ_PHONE_STATE = Manifest.permission.READ_PHONE_STATE;
    public static final String ACCESS_WIFI_STATE = Manifest.permission.ACCESS_WIFI_STATE;
    public static final String CHANGE_WIFI_STATE = Manifest.permission.CHANGE_WIFI_STATE;
    public static final String BLUETOOTH = Manifest.permission.BLUETOOTH;
    public static final String BLUETOOTH_ADMIN = Manifest.permission.BLUETOOTH_ADMIN;


    public enum Path {

        SAVE_BASE_PATH(SDCardUtil.getSDCardPath() + "/nexd/collect/" + DateUtil.getDate(DateUtil.DateStyle.YYYYMMDD) + "/"),

        LOCATION_BASE_PATH(SDCardUtil.getSDCardPath() + "/nexdLocation/location/");

        private String savePath;


        Path(String path) {
            this.savePath = path;
        }

        public String getSavePath() {
            return this.savePath;
        }
    }

    public static String getSavePath(Path path) {
        return path.getSavePath();
    }
}
